﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_survey_Topic_Add"
    Codebehind="Topic_Add.aspx.cs" %>

<%@ Register Src="~/controls/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/css.css"
        rel="stylesheet" type="text/css" />

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="toptable">
            <tr>
                <td width="57%" class="sysmain_navi" style="padding-left: 14px" height="30">
                    调查管理</td>
                <td width="43%" class="topnavichar" style="padding-left: 14px">
                    <div align="left">
                        位置导航：<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt=""
                            src="../../sysImages/folder/navidot.gif" border="0" />调查管理</div>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="Navitable">
            <tr class="menulist">
                <td height="18" style="width: 45%; padding-left: 14px" colspan="2">
                    <label id="param_id" runat="server" />
                    <a href="setClass.aspx" class="menulist">投票分类设置</a>&nbsp;┊&nbsp;<a href="VoteTopic.aspx"
                        class="menulist">投票主题设置</a>&nbsp;┊&nbsp;<a href="VoteItem.aspx" class="menulist">投票选项设置</a>&nbsp;┊&nbsp;<a
                            href="ManageVote.aspx" class="menulist">投票情况管理</a>
                </td>
            </tr>
        </table>
        <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table"
            id="Addvote_Title">
            <tr class="TR_BG_list">
                <td class="list_link" colspan="2">
                    <asp:Literal runat="server" ID="LtrCaption"></asp:Literal>问卷调查主题信息</td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link" width="30%">
                    调查类别：</td>
                <td align="left" class="list_link" width="70%">
                    <asp:DropDownList ID="DdlClass" runat="server" CssClass="form">
                    </asp:DropDownList>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0001',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    调查主题：</td>
                <td align="left" class="list_link">
                    <asp:TextBox ID="TxtCaption" runat="server" Width="124px" CssClass="form" MaxLength="50" /><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtCaption" ErrorMessage="请填写调查主题！"
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0002',this)">
                        帮助</span></td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    项目类型：</td>
                <td align="left" class="list_link">
                    <asp:DropDownList ID="DdlType" runat="server" CssClass="form">
                        <asp:ListItem Value="0" Selected="True">单选</asp:ListItem>
                        <asp:ListItem Value="1">多选</asp:ListItem>
                    </asp:DropDownList>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0003',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    显示方式：</td>
                <td align="left" class="list_link">
                    <asp:DropDownList ID="DdlDisModel" runat="server" CssClass="form">
                        <asp:ListItem Value="0" Selected="True">柱形图</asp:ListItem>
                    </asp:DropDownList>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0005',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    项目序号：</td>
                <td align="left" class="list_link">
                    <asp:DropDownList ID="DdlSeries" runat="server" CssClass="form">
                        <asp:ListItem Value="0" Selected="True">1-9</asp:ListItem>
                        <asp:ListItem Value="1">a-z</asp:ListItem>
                        <asp:ListItem Value="2">A-Z</asp:ListItem>
                        <asp:ListItem Value="3">.</asp:ListItem>
                        <asp:ListItem Value="4">★</asp:ListItem>
                    </asp:DropDownList>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveyitem_0003',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    开始日期：</td>
                <td align="left" class="list_link">
                    <asp:TextBox ID="TxtStarttime" runat="server" Width="124px" CssClass="form" />
                    <input type="button" name="starttime" value=" 选择时间 " class="form" id="starttime"
                        onclick="selectFile('date',document.form1.TxtStarttime,280,500);document.form1.TxtStarttime.focus();" />
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxtStarttime"
                        Display="Dynamic" ErrorMessage="请填写开始日期！" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtStarttime"
                        Display="Dynamic" ErrorMessage="开始日期格式错误！" MaximumValue="9999-12-31" MinimumValue="1753-1-1"
                        SetFocusOnError="True" Type="Date"></asp:RangeValidator>&nbsp;
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0006',this)">
                        帮助</span></td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    结束日期：</td>
                <td align="left" class="list_link">
                    <asp:TextBox ID="TxtEndtime" runat="server" Width="124px" CssClass="form" />
                    <input type="button" name="endtime" value=" 选择时间 " class="form" id="endtime" onclick="selectFile('date',document.form1.TxtEndtime,280,500);document.form1.TxtEndtime.focus();" />
                    <asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxtEndtime" Display="Dynamic"
                        ErrorMessage="请填写结束日期！" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TxtEndtime"
                        Display="Dynamic" ErrorMessage="结束日期格式错误！" MaximumValue="9999-12-31" MinimumValue="1753-1-1"
                        SetFocusOnError="True" Type="Date"></asp:RangeValidator>&nbsp;                    
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0007',this)">
                        帮助</span></td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    选项排列方式：</td>
                <td align="left" class="list_link">
                    <asp:DropDownList ID="DdlSortStyle" runat="server" CssClass="form">
                        <asp:ListItem Value="0" Selected="True">横向排列</asp:ListItem>
                        <asp:ListItem Value="1">1选项/行(纵向)</asp:ListItem>
                        <asp:ListItem Value="2">2选项/行</asp:ListItem>
                        <asp:ListItem Value="3">3选项/行</asp:ListItem>
                        <asp:ListItem Value="4">4选项/行</asp:ListItem>
                        <asp:ListItem Value="5">5选项/行</asp:ListItem>
                        <asp:ListItem Value="6">6选项/行</asp:ListItem>
                        <asp:ListItem Value="7">7选项/行</asp:ListItem>
                        <asp:ListItem Value="8">8选项/行</asp:ListItem>
                        <asp:ListItem Value="9">9选项/行</asp:ListItem>
                        <asp:ListItem Value="10">10选项/行</asp:ListItem>
                        <asp:ListItem Value="11">11选项/行</asp:ListItem>
                        <asp:ListItem Value="12">12选项/行</asp:ListItem>
                    </asp:DropDownList>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0008',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="right" class="list_link">
                    允许“填充”选项：</td>
                <td align="left" class="list_link">
                    <asp:RadioButton ID="RadFillinYes" GroupName="RadF" Text="允许" runat="server" />
                    <asp:RadioButton ID="RadFillinNo" GroupName="RadF" Text="不允许" runat="server"/>
                    <span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_surveytitle_0008',this)">
                        帮助</span>
                </td>
            </tr>
            <tr class="TR_BG_list">
                <td align="center" colspan="2" class="list_link">
                    <input type="submit" name="Savetitle" value=" 提 交 " class="form" id="BtnSave" runat="server"
                        onserverclick="BtnSave_ServerClick" />
                    &nbsp;&nbsp;
                    <input type="reset" name="Cleartitle" value=" 重 填 " class="form" id="ClearTitle"
                        runat="server" />
                </td>
            </tr>
        </table>
        <asp:HiddenField runat="server" ID="HidTID" />
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg"
            style="height: 76px">
            <tr>
                <td align="center">
                    <label id="copyright" runat="server" />
                </td>
            </tr>
        </table>
    </form>
</body>

<script language="javascript">
    function getjsCode(jsid)
    {
        if (jsid!=""&&!isNaN(jsid))
	     {
	        //----------控制居中显示----------------
	        var WWidth = (window.screen.width-500)/2;
            var Wheight = (window.screen.height-150)/2;
            //--------------------------------------
            window.open('showJsPath.aspx?jsid='+jsid, '投票JS代码调用', 'height=200, width=400, top='+Wheight+', left='+WWidth+', toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no');
	     }
	    else
	     {
		    alert("出现错误，请联系技术人员！");
	     }
    }
</script>

</html>
